$doctype
<head>
foreach($styles as $style){
	<link rel="stylesheet" type="$style['type']" media="$style['media']"/>
}
</head>